Previous Book Contents Book Index Next

Inside Macintosh: AppleScript Language Guide / Part 2 - AppleScript Language Reference
Chapter 3 - Values / Using Value Class Definitions


Literal Expressions

A literal expression is an expression that evaluates to itself. The "Literal Expressions" section of a value class definition shows examples of how values of a particular class are represented in AppleScript--that is, typical literal expressions for values of that class. For example, in AppleScript and many other programming languages, the literal expression for a string is a series of characters enclosed in quotation marks. The quotation marks are not part of the string value; they are a notation that indicates where the string begins and ends. The actual string value is a data structure stored in AppleScript.

The sample value class definition in Figure 3-1 shows literal expressions for list values. As with the quotation marks in a string literal expression, the braces that enclose a list and the commas that separate its items are not part of the actual list value; they are notations that represent the grouping and items of
the list.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996